# -*- coding: utf-8 -*-
"""
Created on Fri Feb 22 10:59:08 2013

@author: eaponte
"""

import re
import os

target = './src/msg_utils/'

files = os.listdir(target)
os.chdir(target)


for f in files:
        if (os.path.splitext(f)[1] == '.py'):
                with open(f,'r') as tf:
                     ts = tf.read()
                ts = re.sub('obinder','bindo',ts)
                ts = re.sub(r"binder_py..",r"binder_py('mx_",ts)
                with open(f,'w') as tf:
                     tf.write(ts)
                    